package com.seven.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author yinbenyang
 * @create 2019-01-24 18:13
 */
@Controller
@RequestMapping()
public class HomeController {

    @RequestMapping("/")
    public ModelAndView index(ModelAndView mav){
        mav.setViewName("home");
        return mav;
    }
}
